package com.dayuan.dedis;

import javax.annotation.Resource;

import org.springframework.data.redis.core.ListOperations;
import org.springframework.stereotype.Component;

@Component
public class RedisService {
	@Resource(name = "redisTemplate")
	private ListOperations<String, String> orderQueue;

	public String rightPopOrder(){
		
		return orderQueue.rightPop("dayuanit:pay:order");
	}
}
